package 
{
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.system.Security;
	
	/**
	 * ...
	 * @author lee
	 */
	[SWF(backgroundColor = "#4d4d4d", frameRate = "30", width = "800", height = "600")]
	public class Main extends Sprite 
	{
		public function Main():void 
		{
			if(stage){
				addhandler();
			}else{
				addEventListener(Event.ADDED_TO_STAGE, addhandler);
			}
			Security.allowDomain("*");
		}
		
		private function addhandler(event : Event=null) : void {
			// entry point
			new AppContext(this);
			//addChild(new SkinView());
		}
		
	}
	
}